package com.wxisme.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.wxisme.ssm.mapper.UserInfoMapper;
import com.wxisme.ssm.po.UserInfo;
import com.wxisme.ssm.service.UserInfoService;

/**
 *UserInfoServiceImpl
 *@author wxisme
 *@time 2015-9-20 下午1:35:32
 */
public class UserInfoServiceImpl implements UserInfoService {
	
	@Autowired
	private UserInfoMapper userInfoMapper;
	
	@Override
	public void updatePhotoNumber(UserInfo userInfo) throws Exception {
		userInfoMapper.updatePhotoNumber(userInfo);
	}
	
	
	@Override
	public UserInfo selectUserInfoByUsername(String username) throws Exception {
		
		
		return userInfoMapper.selectUserInfoByUsername(username);
	}
	
	
	@Override
	public void updateAlbumNumber(UserInfo userInfo) throws Exception {
		userInfoMapper.updateAlbumNumber(userInfo);
	}
	
	@Override
	public void updateUserInfoByChange(UserInfo userInfo) throws Exception {
		userInfoMapper.updateUserInfoByChange(userInfo);
	}
	
	@Override
	public void uploadHead(UserInfo userInfo) throws Exception {
		userInfoMapper.uploadHead(userInfo);
	}
	
	@Override
	public String selectHead(String username) throws Exception {
		return userInfoMapper.selectHead(username);
	}
	
	@Override
	public UserInfo findFriends(String username) throws Exception {
		return userInfoMapper.findFriends(username);
	}

}
